Edit Resource: AvailablePeriodicWindows
Description
The AvailablePeriodicWindows attribute under EditResource defines the available or unavailable windows of a resource (depending on default availability). These windows occur on a regular basis, determined by a certain frequency, within a given time interval. When this command is sent, all previous periodic windows are deleted.
For more information on parameters, see the description of the Periodic Window Definition Form
Parameters
Parameter | Description |
---|---|
Frequency | Frequency options should be entered on their own and the options are as follows:
|
Start | The format is YYYY/MM/DD_HH:MM:SS or YYYY/MM/DD_HH:MM:SS.fff |
Stop | The format is YYYY/MM/DD_HH:MM:SS or YYYY/MM/DD_HH:MM:SS.fff |
CustomEpoch | Epoch time is only used if the frequency option is "Custom", otherwise the parameter should not be included in the command. The parameter should be on its own and in the format -- YYY/MM/DD_HH:MM:SS or YYYY/MM/DD_HH:MM:SS.fff. |
CustomInterval | Interval is only used if the frequency option is "Custom", otherwise the parameter should not be included in the command. The parameter should be on its own and entered in numeric second(millisecond fidelity). |
Period Comment | A string of text of the comment itself in single quotes. May be an empty string if no comment is desired. |
"Internal Windows" : "Offset" | The parameter value format is based on the format of the frequency: Weekly: DD_HH:MM:SS.fff (e.g. TU_10:04:05.100) |
"Internal Windows" : "Duration" | Enter as a number in seconds (millisecond fidelity). |
"Internal Windows" : "Comment" | A string of text in single quotes of the comment for the given inside window. |
Examples
Everyday from 08:88:88 to 12:00:00 Ops Team will run 'Morning Shift' and from 13:00:00 to 17:00:00 will run 'Afternoon Shift'.
PATCH api/resource/Ops Team
Body:
{
"AvailablePeriodicWindows" : {
"Frequency" : "Daily",
"Start" : "2017/01/01_00:00:00",
"Stop" : "2017/01/03_00:00:00",
"InternalWindows" : {
"Offset" : "08:00:00",
"Duration" : "14400",
"Comment" : "Morning Shift" },
"InternalWindows" : {
"Offset" : "13:00:00",
"Duration" : "14400",
"Comment" : "Afternoon Shift" }
}